#include"REctangle.h"
REctangle::REctangle() :width(3), height(10){

}
REctangle::REctangle(double width, double height){
	this->width = width;
	this->height = height;
}
REctangle::REctangle(const REctangle & rect){
	this->width = rect.getWidth();
	this->height = rect.getHeight();
}
REctangle::~REctangle(){

}
double REctangle::getArea() const{
	return width*height;
}
double REctangle::getWidth()const{
	return width;
}
void REctangle::setWidth(double width){
	this->width = width;
}
double REctangle::getHeight()const{
	return height;
}
void REctangle::setHeight(double height){
	this->width = height;
}
const REctangle & REctangle::operator --(){
	--width;
	--height;
	return *this;

}